package com.hzf.ucenter.dao.model;

import java.io.Serializable;

public class UcenterUserAuth implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 姓名
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 身份证号码
     *
     * @mbg.generated
     */
    private String idCard;

    /**
     * 手持证件照正面
     *
     * @mbg.generated
     */
    private String frontDocument;

    /**
     * 证件照正面
     *
     * @mbg.generated
     */
    private String cardFront;

    /**
     * 申请角色标识：0：基础用户，1：设计师，2：工人，3：直接申请工长，4：材料商，5：其他
     *
     * @mbg.generated
     */
    private Integer authType;

    /**
     * 关联用户ID
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 申请手机号
     *
     * @mbg.generated
     */
    private Long phone;
    private UcenterAuthType ucenterAuthType;
    private UcenterAuthBusiness ucenterAuthBusiness;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getFrontDocument() {
        return frontDocument;
    }

    public void setFrontDocument(String frontDocument) {
        this.frontDocument = frontDocument;
    }

    public String getCardFront() {
        return cardFront;
    }

    public void setCardFront(String cardFront) {
        this.cardFront = cardFront;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public UcenterAuthType getUcenterAuthType() {
        return ucenterAuthType;
    }

    public void setUcenterAuthType(UcenterAuthType ucenterAuthType) {
        this.ucenterAuthType = ucenterAuthType;
    }

    public UcenterAuthBusiness getUcenterAuthBusiness() {
        return ucenterAuthBusiness;
    }

    public void setUcenterAuthBusiness(UcenterAuthBusiness ucenterAuthBusiness) {
        this.ucenterAuthBusiness = ucenterAuthBusiness;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", idCard=").append(idCard);
        sb.append(", frontDocument=").append(frontDocument);
        sb.append(", cardFront=").append(cardFront);
        sb.append(", authType=").append(authType);
        sb.append(", userId=").append(userId);
        sb.append(", phone=").append(phone);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        com.hzf.ucenter.dao.model.UcenterUserAuth other = (com.hzf.ucenter.dao.model.UcenterUserAuth) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
                && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))
                && (this.getFrontDocument() == null ? other.getFrontDocument() == null : this.getFrontDocument().equals(other.getFrontDocument()))
                && (this.getCardFront() == null ? other.getCardFront() == null : this.getCardFront().equals(other.getCardFront()))
                && (this.getAuthType() == null ? other.getAuthType() == null : this.getAuthType().equals(other.getAuthType()))
                && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
                && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        result = prime * result + ((getFrontDocument() == null) ? 0 : getFrontDocument().hashCode());
        result = prime * result + ((getCardFront() == null) ? 0 : getCardFront().hashCode());
        result = prime * result + ((getAuthType() == null) ? 0 : getAuthType().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        return result;
    }
}